<%@ page language="java"%>
<%@ page import="java.util.List" %>
<%@ page import=" BE.Pedido" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<html:html locale="true">
<head>
    <title>Mobius</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="minimum-scale=1.0, width=device-width, maximum-scale=1.6, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon" href="mobListaPedidosCliente/Images/WebClipIcon.png">
    <link rel="stylesheet" href="mobListaPedidosCliente/main.css">
    <link rel="stylesheet" href="mobListaPedidosCliente/Parts/Transitions.css">
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/setup.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/main.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/Header.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/utilities.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/Transitions.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/StackLayout.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/Browser.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/Text.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/List.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/PushButton.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobListaPedidosCliente/Parts/ButtonHandler.js" charset="utf-8"></script>
     <script type="text/javascript" charset="utf-8">
    // Sample data.  Some applications may have static data like this, but most will want to use information fetched remotely via XMLHttpRequest.


     <%
        List<Pedido> vectorPedido=null;
        if(request.getAttribute("arrPedidos")!=null) {
            vectorPedido=(List<Pedido>)request.getAttribute("arrPedidos");
        };
        request.getSession().setAttribute("arrPedidos", vectorPedido);


    %>

   var parks=new Array(<%= vectorPedido.size() %>);

<%

   for(int i=0; i<vectorPedido.size(); i++)
   {
       out.println("parks["+ i +"]  = new Array("+"\"" +(vectorPedido.get(i)).getSrlIddocumentotransac()+ "\""+","+"\""+ "S/."+ (vectorPedido.get(i)).getRlMontototal() + "\""+","+"\""+(vectorPedido.get(i)).getDateFechaentrega()+"\""+","+"\""+"Realizado el:"+(vectorPedido.get(i)).getDateFecharegistro()+"\""+","+"\""+(vectorPedido.get(i)).getSrlIdestadodocumento()+"\""+","+"\""+"Cliente:"+"\""+");");
       //0 idPedido, 1 monto, 2 fecha entrega, 3 Descripcion, 4 id estado, 5 Cliente
   }
%>

   </script>
</head>
<body onload="load();">
    <html:form action="mobVerPedido">
        <input type="hidden" name="indiceEliminar" id="indiceEliminar" value="">
    <div apple-part="com.apple.Dashcode.part.browser" id="browser">
        <div apple-part="com.apple.Dashcode.part.header" apple-part-locked="true" apple-style="image-theme: 2; image-shape: 3; image-button-type: 3; image-opacity: 1.00; image-top-color: 0.592156887,0.65882355,0.741176486,1; image-bottom-color: 0.411764711,0.513725519,0.635294139,1; image-radius: 0,0,0,0; image-border: 0; image-border-color: 0.529399991,0.529399991,0.529399991,1; image-border-width: 0; shine-on: 1; shine-strength: 0.08; shine-alpha-level: 0.00; shine-height: 0.50; glass-arc-height: 0.00; image-include-custom: 1; image-custom-image-path: header.png; image-custom-center: 1; image-custom-resize: 2; shadow-include-shadow: 0;" apple-group="header" id="header">
            <div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 0,0,0,1; image-bottom-color: 1,1,1,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.17; shine-alpha-level: 0.04; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" id="btnResultados"></div>
            <div apple-part="com.apple.Dashcode.part.gobackbutton" id="back_button" class="apple-no-children back_button_template dashcode-header-backbutton" apple-part-locked="true" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 11; image-button-type: 0; image-opacity: 1.00; image-top-color: 0,0,0,1; image-bottom-color: 1,1,1,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.17; shine-alpha-level: 0.04; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" apple-template="true"></div>
        </div>
        <div apple-part="com.apple.Dashcode.part.StackLayout" apple-part-locked="true" id="stackLayout">
            <div id="listLevel" apple-part-locked="true">
                <ul apple-part="com.apple.Dashcode.part.edgeToEdgeList" id="list">
                    <li id="listRowTemplate" class="listRowTemplate_template" apple-template="true">
                        <!--<img src="mobListaPedidosCliente/Images/MyPicture_3.jpg" id="img" class="img_template">-->
                        <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children rowTitle_template" apple-text-overflow="ellipsis" id="rowTitle" apple-wasinsidetemplate="true"></div>
                        <div apple-part="com.apple.Dashcode.part.box" id="rowArrow" class="rowArrow_template"></div>
                        <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children rowTitle1_template" apple-text-overflow="ellipsis" id="rowTitle1"></div>
                    </li>
                </ul>
            </div>
            <div id="detailLevel" apple-part-locked="true">
                <div apple-part="com.apple.Dashcode.part.box" id="detailBox">
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-text-overflow="ellipsis" id="detailTitle" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="detailLocation" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="detailDescription" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <img src="mobListaPedidosCliente/Images/store.png" id="imgStore"></div>
                <div apple-part="com.apple.Dashcode.part.roundedrectanglewebshape" apple-style="image-theme: 0; image-shape: 3; image-button-type: 3; image-opacity: 1.00; image-top-color: 1,1,1,1; image-bottom-color: 1,1,1,1; image-radius: 8,8,8,8; image-border: 1; image-border-color: 0.529399991,0.529399991,0.529399991,1; image-border-width: 1; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 0;" id="boxMontoTotal">
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="text" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtMontoTotal"></div>
                </div>
                <div apple-part="com.apple.Dashcode.part.roundedrectanglewebshape" apple-style="image-theme: 0; image-shape: 3; image-button-type: 3; image-opacity: 1.00; image-top-color: 1,1,1,1; image-bottom-color: 1,1,1,1; image-radius: 8,8,8,8; image-border: 1; image-border-color: 0.529399991,0.529399991,0.529399991,1; image-border-width: 1; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 0;" id="boxFechaEntrega">
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="text1" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtFechaEntrega"></div>
                </div>
                <html:submit property="submit" styleId="btnVerDetalle">
                 <bean:message key="button.VerDetalle"/>
                </html:submit>
            </div>
        </div>
    </div>
    </html:form>
</body>
</html:html>
